-
Notifications
You must be signed in to change notification settings - Fork 323
Make use of SocketCAFile config #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@hyde-zhang Add a test or two around this in |
|
Use |
- Return error if client key cert file pair incomplete - Add simple test for TLS load with only CA
|
@ackleymi Thanks for looking into this. Since the acceptor and initiator uses the same
|
| s.Nil(tlsConfig.RootCAs) | ||
| s.Nil(tlsConfig.ClientCAs) | ||
| s.Equal(tls.NoClientCert, tlsConfig.ClientAuth) | ||
| s.Equal(tls.RequireAndVerifyClientCert, tlsConfig.ClientAuth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to verify the incoming message using host's root CA set i.e. only skip when SocketUseSSL = Y - when initiator is allowed to not providing key pairs for its own identify
|
@ackleymi Updated previous comments. Found it was a bit confusing. Sorry about that. |
|
Hey @ackleymi, any chance we can get this merged so that when initiator needs to use a custom CA file it can set |
|
@ackleymi thanks |
I think the
SocketUseSSLconfig actually makes the code skips theSocketCAFileconfig when it is set toY.Since we have
SocketCAFileoption to use a supplied CA certificate to verify server identity, we still need the part of the code to add the supplied CA certificate to theCertPooland other functionalities. Skipping client authentication shouldn't skip everything.